package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商表 Bean
 */
@TableName("t_supplier")
@ExcelTarget("work")
public class SupplierBean {
    /** 供应商ID */
    @TableId(value = "pk_supplierId",type = IdType.AUTO)
    @Excel(name="id")
    private Integer supplierId;
    /** 供应商名称 */
    @TableField("su_name")
    @Excel(name="供应商名称")
    private String name;
    /** 负责人姓名 */
    @TableField("su_director")
    @Excel(name="负责人")
    private String director;
    /** 负责人电话 */
    @TableField("su_directorPhone")
    @Excel(name="负责人电话")
    private String directorPhone;
    /** 供应商地址 */
    @TableField("su_address")
    @Excel(name="供应商地址")
    private String address;
    /** 经营范围 */
    @TableField("su_scope")
    @Excel(name="经营范围")
    private String scope;

    public SupplierBean() {
    }

    public SupplierBean(String name, String director, String directorPhone, String address, String scope) {
        this.name = name;
        this.director = director;
        this.directorPhone = directorPhone;
        this.address = address;
        this.scope = scope;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getDirectorPhone() {
        return directorPhone;
    }

    public void setDirectorPhone(String directorPhone) {
        this.directorPhone = directorPhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "supplierId=" + supplierId +
                ", name='" + name + '\'' +
                ", director='" + director + '\'' +
                ", directorPhone='" + directorPhone + '\'' +
                ", address='" + address + '\'' +
                ", scope='" + scope + '\'' +
                '}'+'\n';
    }
}
